type capitalized = ICapitalize<'hello world'> // expected to be 'Hello world'

type ICapitalize<S extends string> = S extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : S